Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "coordinates-from-map">

DEPRECATED there is another node (dashboard-map) with the same functionality. With this node you can add a map to an existing dashboard or a new one created by the node. If a point in the map is clicked this node receives the GPS coordinates of the point clicked on the map.

Configuration

dashboard string
Dashboard title to which the map will be added

Outputs

  1. GPS Coordinates and service uri
    Returns the GPS coordinates when the map is clicked or GPS coordinates and service uri when the device in the map is clicked
    {
        "latitude": 43.75, 
        "longitude": "11.35,
    	"serviceUri": "http://www.disit.org/km4city/resource/iot/orionUNIFI/DISIT/METRO15"
    }